package cn.wolfcode.shop.web.feign;

import cn.wolfcode.shop.common.Result;
import cn.wolfcode.shop.domain.Good;
import cn.wolfcode.shop.web.feign.hystrix.GoodFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(name = "goods-server", fallback = GoodFeignHystrix.class)
public interface GoodFeignApi {
    @RequestMapping("/getGoodListByIds")
    Result<List<Good>> getGoodListByIds(@RequestParam("ids") Set<Long> ids);
}
